<?php
define('IN_ECS', true);
require('../includes/init.php');
include_once('../comm.php');
extract($_POST);
$FMUID = $_SESSION['user_id'];
$result = "failure";
//�ļ���Ϣ����ݿ�
$query = "DELETE FROM `fmphoto` WHERE id=$id and uid=$FMUID";
$re = $GLOBALS['db']->query($query);
if($re){
	$result = "success";
}else{
	$result = "failure";
}

$d = "<root><info><result>".$result."</result></info></root>";
echo $d;
?>
